import "./assets/reset.less";

import Vue from "vue";
import router from "./router";
import store from "./store";
import http from "./utils/http";
import md5 from "js-md5";

import { get, post, postForm } from "./utils/reqHttp";

import JsonExcel from 'vue-json-excel';

Vue.component('downloadExcel', JsonExcel);

// ElementUI 全局安装
import ElementUI from "element-ui";

// 指定了主题颜色
import "./assets/style/theme/index.css";

// 导入mock接口
import "./api";

Vue.use(ElementUI);

// 在vue实例上挂载http对象，这样在任何组件内部 this.$http
Vue.prototype.$http = http;
Vue.prototype.$getHttp = get;
Vue.prototype.$postHttp = post;
Vue.prototype.$postForm = postForm;
Vue.prototype.$md5 = md5;

new Vue({
  router,
  store,
  render: h => h("router-view")
}).$mount("#app");
